package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/** tiger
 * 商品分类
 */
@Setter@Getter
public class ProductSort extends BaseDomain{
    //分类名称
    private String name;

    //获取json对象
    public Object getJson(){
        Map<String,Object> map = new HashMap<>();
        map.put("id",id);
        map.put("name",name);
        return JSONUtil.toJSONString(map);
    }
}